package cn.itlaobing.Service;

import cn.itlaobing.Dao.UserDao;
import cn.itlaobing.Model.UserModel;

public class UserService {
    private UserDao ud=new UserDao();
    public UserModel queryOne(String account,String pwd){
        UserModel um=null;
        um=ud.findByAccount(account);
        if(um!=null){
            if(pwd.equals(um.getPassowrd())){
                return um;
            }
        }
        return null;
    }
}
